using UnityEngine;

public class BlinkCtrl : MonoBehaviour {
    public Transform x_axis;
    public Transform y_axis;
    public Vector2 rot_spd = Vector2.one*30;
    public Blink blink;
    private void FixedUpdate() {
        if(Input.GetButtonDown("Fire1")){
            print("Raycast");
            blink.Raycast();
        }
        if(Input.GetButtonDown("Fire2")){
            print("Move");
            blink.Move();
        }
        float x = Input.GetAxis("Horizontal");
        y_axis.Rotate(Vector3.up,x*rot_spd.x*Time.deltaTime);
        float y = Input.GetAxis("Vertical");
        x_axis.Rotate(Vector3.left,y*rot_spd.y*Time.deltaTime);
    }
}

